<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/include.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>记录类型列表</title>
</head>
<body>
	<div id="add">
		<a href="${ctx}/recordType!viewType.action">添加消费类别</a>
	</div>
	<div id="recordTypeList">
		<table width="99%" cellpadding="3" cellspacing="1" border="1"
			align="center" class="table_style">
			<thead>
				<tr>
					<th width="15%">创建人</th>
					<th width="15%">类别名称</th>
					<th width="15%">描述</th>
					<th width="15%">创建时间</th>
					<!-- <th width="5%">查看</th> -->
					<th width="5%">修改</th>
					<th width="5%">删除</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${typeList}" var="type">
					<tr onmouseover="changeColor(this, '#FFFFCC', true)"
						onmouseout="changeColor(this, '#FFFFFF', false)">
						<td>${type.type.username}</td>
						<td>${type.type.type}</td>
						<td>${type.type.description}</td>
						<td>${type.createTime}</td>
						<!-- <td><a href="javascript:void(0);">修改</a></td>
						<td><a href="javascript:void(0);">删除</a></td> -->
						<td><a href="${ctx}/recordType!viewType.action?type.id=${type.type.id}">修改</a>
						</td>
						<td><a href="${ctx}/recordType!removeType.action?type.id=${type.type.id}">删除</a>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	<a href="${ctx}/main!backToIndex.action">返回到首页</a>
	<script type="text/javascript" src="${ctx}/js/common.js"></script>
</body>
</html>
